/**
 * Copyright 2023 Inc.
 **/
package com.myz.springboot2.mapping.controller;

import com.myz.springboot2.mapping.config.UrlMappingManager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author maoyz0621 on 2023/9/11
 * @version v1.0
 */
@RestController
@RequestMapping("/urls")
@Slf4j
public class MappingController {

    @GetMapping("/get")
    public Map get(String userBean) {
        return new HashMap<>();
    }

    @PostMapping("/post")
    public Map post(String userBean) {
        return new HashMap<>();
    }

    @GetMapping("/all")
    public Map all() {
        return UrlMappingManager.getMap();
    }
}